home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / std_clock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-24  |  1.7 KB  |  71 lines

  1. /*  SVGATextMode -- An SVGA textmode manipulation/enhancement tool
  2.  *
  3.  *  Copyright (C) 1995,1996  Koen Gadeyne
  4.  *
  5.  *  This program is free software; you can redistribute it and/or modify
  6.  *  it under the terms of the GNU General Public License as published by
  7.  *  the Free Software Foundation; either version 2 of the License, or
  8.  *  (at your option) any later version.
  9.  *
  10.  *  This program is distributed in the hope that it will be useful,
  11.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *  GNU General Public License for more details.
  14.  *
  15.  *  You should have received a copy of the GNU General Public License
  16.  *  along with this program; if not, write to the Free Software
  17.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. /***
  21.  *** SVGA clock programming functions for SVGATextMode
  22.  ***/
  23.  
  24. #ifndef _STD_CLOCK_H
  25. #define _STD_CLOCK_H
  26.  
  27. /*
  28.  * Cirrus Logic specific clock stuff
  29.  */
  30.  
  31.  
  32. #define SET_CLOCKBITS_0_1(no)   ( outb(( inb(VGA_MISC_R) & 0xf3) | (((no) << 2) & 0x0C) , VGA_MISC_W) ) /* bits 0 and 1 of clock no */
  33.  
  34.  
  35. void LegendClockSelect(int no);
  36.  
  37. void TVGAClockSelect(int chipset, int num_clocks, int no);
  38.  
  39. void s3ClockSelect(int no);
  40.  
  41. void ATIClockSelect(int chipset, int no);
  42.  
  43. void WDCClockSelect(int chipset, int num_clocks, int no);
  44.  
  45. void ET4000ClockSelect(int no);
  46.  
  47. void ET3000ClockSelect(int no);
  48.  
  49. void CirrusClockSelect(int freq);
  50.  
  51. void Video7ClockSelect(int no);
  52.  
  53. void ALIClockSelect(int chipset, int no);
  54.  
  55. void OAKClockSelect(int chipset, int no);
  56.  
  57. void SISClockSelect(int no);
  58.  
  59. void RealTekClockSelect(int no);
  60.  
  61. void ARKClockSelect(int no);
  62.  
  63. void NCRClockSelect(int chipset, int no);
  64.  
  65. void GVGAClockSelect(int no);
  66.  
  67. void MXClockSelect(int no);
  68.  
  69. #endif
  70.  
  71.